/* eslint-disable vue/html-closing-bracket-spacing */
<template>
  <div class="pwd phone">
    <!-- 修改手机号弹框 -->
    <el-dialog
      title="修改密码"
      :visible.sync="showpwd"
      width="30%"
      center
    >
      <div class="registerBox">
        <div class="input-box phone-box">
          <i class="font_family icon-denglu_icon_mima" />
          <input v-model="mima" type="phone" placeholder="请输入密码" max="8">
        </div>
        <div class="input-box phone-box">
          <i class="font_family icon-dengluiconquerenmima" />
          <input v-model="newmima" type="phone" placeholder="请重新输入密码" length="8">
        </div>
        <div class="input-box mima-box">
          <i class="font_family icon-denglu_icon_yanzheng" />
          <input v-model="yanzhengma" type="password" placeholder="请输入验证码" max="6">
          <span>获取验证码</span>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="showpwd = false">还回</el-button>
        <el-button type="primary" @click="notarize">确认更换</el-button>
      </span>
    </el-dialog>
    <!-- /修改手机号弹框 -->
    <!-- 确认修改手机号之后弹框 -->
    <div class="succeed">
      <el-dialog
        :visible.sync="succeed"
        width="30%"
        center
      >
        <p><img src="../../../../assets/img/template-item2/icons/cuceed_icon_duigou.png" alt=""></p>
        <span>修改成功！<em>请重新登陆</em></span>
        <span slot="footer" class="dialog-footer">
          <el-button type="primary" @click="succeed = false">重新登陆</el-button>
        </span>
      </el-dialog>
    </div>

  </div>
</template>

<script>
export default {
  name: 'Set',
  data() {
    return {
      showpwd: false,
      succeed: false,
      newmima: '',
      mima: '',
      yanzhengma: ''
    }
  },
  methods: {
    showPwd() {
      this.showpwd = true
    },
    notarize() {
      this.showpwd = false
      this.succeed = true
    }
  }
}
</script>

<style lang="scss" scoped>
.pwd{
  .input-box{
    width: 100%;
    height: 48px;
    border: 1px solid #ECECEC;
    line-height: 48px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    margin-bottom: 12px;
    >input{
      border: none;
      outline: none;
      background-color: transparent;
      height: 20px;
      line-height: 20px;
      padding: 0;
      width: 100%;
    }
    >input::-webkit-input-placeholder{
      /* 修改placeholder颜色  */
      color: #707070;
      font-size: 14px;
    }
    >i{
      font-size: 16px;
      margin-left: 14px;
      margin-right: 15px;
    }
  }
  .registerBox{
    padding-top: 46px;
    >p:last-child{
      width: 100%;
      text-align: center;
      font-size: 16px;
      >a{
        color: #417AEF;
      }
    }
    >.mima-box{
      position: relative;
      margin-bottom: 20px;
      >span{
        display: block;
        height: 32px;
        line-height: 32px;
        position: absolute;
        top: 10px;
        right: 6px;
        padding: 0 7px;
        color: #fff;
        background-color: #DC3535;
        border-radius:4px;
        cursor: pointer;
        font-size: 14px;
      }
    }
  }
  .el-button--default{
    width:134px;
    height:46px;
    background:#F3F3F3;
    border:1px solid #ECECEC;
    border-radius:4px;
    color: #787878;
    font-size: 20px;
  }
  .el-button{
    font-size:20px;
  }
  .succeed{
    .el-dialog__body span{
      font-size:22px;
      font-weight:600;
      line-height:30px;
      em{
        font-size: 20px;
      }
    }
  }
}
</style>
